package com.doubi.wxpay;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class WxConfig {
    /**
     * 设置微信公众号或者小程序等的appid.
     */
    public static String appId = "";
    /**
     * 微信支付商户号.
     */
    public static String mchId = "";
    /**
     * 微信支付商户密钥.
     */
    public static String mchKey = "";

    /**
     * 异步回调地址
     */
    public static String notifyUrl = "";


    @Value("${wxpay.notifyUrl}")
    public void setNotifyUrl(String notifyUrl) {
        WxConfig.notifyUrl = notifyUrl;
    }
}
